(function(win){
    let OPEN_VCONSOLE = win.localStorage.getItem('OPEN_VCONSOLE');
    if(OPEN_VCONSOLE && (OPEN_VCONSOLE > (+new Date()) - 1000 * 60 * 60)){
        let scriptEle = document.createElement('script')
        scriptEle.src = win.location.origin + (win.location.href.indexOf('/h5/') != -1?'/h5':'') + '/libs/vconsole.min.js';
        scriptEle.onload = () => {
            if(win && win.VConsole){
                new win.VConsole()
            }
        }
        document.body.appendChild(scriptEle)
    }else{
        win.localStorage.removeItem('OPEN_VCONSOLE')
    }
})(window)